import request from '@/config/request.js';

// ----------入库作业-----------------
// 需入库物料
export const queryOrderAPI = (params) => request.post('', params)

// 整箱/单盘绑定
export const bindAPI = (params) => request.post('/api/inbound/boxBind', params)

// ----------绑定载具------------------------------------------------------------------------
// 绑定载具(返回料架码)
export const bindContainerAPI = (params) => request.post('/api/inbound/rackBind', params)

// 查询是否有待检物料(拿料架码查询是否需要质检)
export const queryQualityAPI = (params) => request.post('/api/inbound/triggerCheck', params)

// code为200但data是false需要质检
// export const handlerQualityAPI = (params) => request.post('/api/interactive/bindRackToIqc', params)

// 叫车
// export const callCarAPI = (params) => request.post('/api/interactive/scanCodeSend', params)
// ----------抽料质检------------------------------------------------------------------------
// 查询待抽检明细
export const queryQualityListAPI = (params) => request.post('/api/inbound/showPumpingByRack', params)

// 抽料解绑
export const unBindAPI = (params) => request.post('/api/inbound/unbindByPumping', params)

// 质检完成
export const completeQualityAPI = (params) => request.post('/api/inbound/finishedByPumping', params)

// ----------良退入库--------------------
export const returnInboundAPI = (params) => request.post('/api/inbound/goodReturns', params)

// -----------绑定叫车-----------------------------------------------------------------------
// 载具站点绑定接口
export const siteBindAPI = (params) => request.post('/api/robot/carrierBind', params)

// 载具站点解绑接口
export const siteUnBindAPI = (params) => request.post('/api/robot/carrierUnbind', params)